#define _CRT_SECURE_NO_WARNINGS 1
#include "Stack.h"

void test01()
{
	Stack S1;
	StackInit(&S1);

	StackPush(&S1, 1);
	StackPush(&S1, 2);
	StackPush(&S1, 3);
	StackPush(&S1, 4);

	while (!StackEmpty(&S1))
	{
		printf("%d ", StackTop(&S1));
		StackPop(&S1);

	}


	StackDestroy(&S1);

}

int main()
{
	test01();
	return 0;
}